<%@ Page Language="C#" Theme="Defaultsys" AutoEventWireup="true" CodeFile="ContactHistory.aspx.cs"
    Inherits="ContactHistory" Title="Rapport Plan System - Contact history" MasterPageFile="~/MasterPage.master" %>

<%@ MasterType VirtualPath="~/MasterPage.master" %>
<asp:Content runat="server" ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1">
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td class="contTable">
                <asp:GridView ID="grdContactHistory" SkinID="gvGrid" runat="server" AutoGenerateColumns="false"
                    AllowPaging="true" Width="100%" OnPageIndexChanging="grdContactHistory_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField HeaderText="ID" 
                            HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                            HeaderStyle-Width="3%" ItemStyle-VerticalAlign="Top">
                            <ItemTemplate>
                                <%# Container.DataItemIndex + 1 %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        
                        <asp:TemplateField HeaderText="Entry" ItemStyle-VerticalAlign="Top"
                            HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left">
                            <ItemTemplate>
                                <table border="0">
                                    <tr>
                                        <td>
                                            Action type:
                                        </td>
                                        <td>
                                            <asp:Label ID="lblActionType" runat="server" Text='<%# Eval("Type") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Time:
                                        </td>
                                        <td>
                                            <asp:Label ID="lblTime" runat="server" Text='<%# Eval("Time") %>'></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Description:
                                        </td>
                                        <td>
                                            <asp:Label ID="lblDescription" runat="server" Text='
                                            <%# Eval("Description").ToString()!= ""?Eval("Description").ToString():"Scheduled call" %>'></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <EmptyDataTemplate>
                        No entries.</EmptyDataTemplate>
                </asp:GridView>
                <!--
     <table border="1" width="100%">
         <tr>
             <td>
                 Type</td>
             <td >
                 Details</td>
             <td >
                 Date</td>
             
         </tr>
         <tr>
             <td>
                 Call</td>
             <td>New meeting
                 </td>
             <td>
                 10/25/2007</td>
             
         </tr>
         <tr>
             <td>
                 Mail</td>
             <td>Welcome message
                 </td>
             <td>
                 10/25/2007</td>
             
         </tr>
         <tr>
             <td >
                 Letter</td>
             <td >Welcome message
                 </td>
             <td >
                 10/25/2007</td>
             
         </tr>
     </table>
     -->
                <asp:Button ID="btnBack" runat="server" OnClick="btnBack_Click" Text="Contacts" />
            </td>
        </tr>
    </table>
</asp:Content>
